package com_1;

import jdk.swing.interop.SwingInterOpUtils;

import java.io.File;
import java.io.IOException;


public class FileDemo {
    public static void main(String[] args) throws IOException {
        File  f=new File("E:\\itcast\\java.text");
        System.out.println(f.createNewFile());
        System.out.println("-------");
        File   f1=new File("E:\\itcast\\javaEE");
        System.out.println(f1.mkdir());
        File   f2=new File("E:\\itcast\\javaWEB\\html");
        System.out.println(f2.mkdirs());
       File  f3=new File("myFile\\java.text");
        System.out.println(f3.createNewFile());
        System.out.println(f3.delete());

    }
}
